package com.chap9;
import java.awt.*;
import javax.swing.*;
public class demo9_1 {
    public static void main(String[] args) {
        JFrame jf=new JFrame("A Window");
        jf.setSize(500,600);
        jf. setLocation(0, 300);
        jf . setVisible(true) ;
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
